package EXER;

public class Car extends Vehicle implements IPower{
    private String caenumber;

    public Car() {
    }

    public Car(String brand, String color, String caenumber) {
        super(brand, color);
        this.caenumber = caenumber;
    }

    public String getCaenumber() {
        return caenumber;
    }

    public void setCaenumber(String caenumber) {
        this.caenumber = caenumber;
    }
    public void run() {
        System.out.println("汽车");
    }
    public void power(){
        System.out.println("加油发电");
    }

}
